package com.ruoyi.qsng.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 回复对象 k_clearinghouse_comment_reply
 * 
 * @author gk
 * @date 2023-06-15
 */
@Data
@ApiModel("回复对象 k_clearinghouse_comment_reply")
public class KClearinghouseCommentReply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty("id")
    private Long id;

    /** 评论id */
    @Excel(name = "评论id")
    @ApiModelProperty("评论id")
    private Long commentId;

    /** 回复目标id */
    @Excel(name = "回复目标id")
    @ApiModelProperty("回复目标id,如果reply_type是comment的话，那么reply_id＝commit_id，如果reply_type是reply的话，这表示这条回复的父回复 ")
    private Long replyId;

    /** 回复内容 */
    @Excel(name = "回复内容")
    @ApiModelProperty("回复内容")
    private String content;

    /** 回复用户id */
    @Excel(name = "回复用户id")
    @ApiModelProperty("回复用户id")
    private String fromUid;

    /** 目标用户id */
    @Excel(name = "目标用户id")
    @ApiModelProperty("目标用户id")
    private String toUid;

    @ApiModelProperty("回复的类型,针对评论的回复(comment)，针对回复的回复(reply)")
    private String replyType;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setReplyId(Long replyId) 
    {
        this.replyId = replyId;
    }

    public Long getReplyId() 
    {
        return replyId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setFromUid(String fromUid) 
    {
        this.fromUid = fromUid;
    }

    public String getFromUid() 
    {
        return fromUid;
    }
    public void setToUid(String toUid) 
    {
        this.toUid = toUid;
    }

    public String getToUid() 
    {
        return toUid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commentId", getCommentId())
            .append("replyId", getReplyId())
            .append("content", getContent())
            .append("fromUid", getFromUid())
            .append("toUid", getToUid())
            .toString();
    }
}
